
import { Column, Table } from 'sequelize-typescript';
import { BaseModel } from '@/model'
import { DataTypes } from "sequelize";

@Table
export class Dict extends BaseModel {
  @Column({ type: DataTypes.STRING, allowNull: false, comment: '字典类型编码' })
  dictType: string;

  @Column({ type: DataTypes.STRING, comment: "字典类型Id" })
  dictId: string;

  @Column({ type: DataTypes.STRING, comment: "描述" })
  description: string;

  @Column({ type: DataTypes.STRING, comment: "字典名称" })
  label: string;

  @Column({ type: DataTypes.STRING, comment: "字典值" })
  value: string;

  @Column({ type: DataTypes.STRING, comment: "字典类型" })
  systemFlag: string;

  @Column({ type: DataTypes.STRING, comment: "创建人" })
  createBy: string;

  @Column({ type: DataTypes.STRING, comment: "更新人" })
  updateBy: string;

  @Column({ type: DataTypes.STRING, comment: "软删除" })
  delFlag: string;

  @Column({ type: DataTypes.STRING, comment: "备注" })
  remarks: string;

  @Column({ type: DataTypes.NUMBER, comment: "排序" })
  sortOrder: number;
}
